<%-- 
    Document   : add_student_post
    Created on : Nov 24, 2011, 8:18:50 PM
    Author     : THIENSUHACK
--%>

<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="dktc_ws.Giangvien"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%

Giangvien gv = new Giangvien();
gv.setMagv(Integer.parseInt(request.getParameter("id")));
   int result=0;
   DataWS a=new DataWS();
   
   SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");

//    Gets a calendar using the default time zone and locale.

Calendar c1 = Calendar.getInstance();
c1.set(2011, 11,11);
String date=sdf.format(c1.getTime());
   
    
    result = a.xoagiangvien(gv.getMagv());
   if(result>0)
             {
       out.print("Xóa thành công!");
   }
   else
       out.print("Xóa thất bại");
           %>
<div><a href="/DKTC/admin/index.jsp?page=list_teacher"> << Trở lại danh sách</a></div>